package com.lzh.others.java8.book.chapter_3_3常用流操作;

import lombok.Getter;

import java.io.Serializable;

/**
 * @author lzh
 */
@Getter
public class Track implements Serializable {
    private String name;
    private int salesVolume;

    public Track() {
    }

    public Track(String name, int salesVolume) {
        this.name = name;
        this.salesVolume = salesVolume;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setSalesVolume(int salesVolume) {
        this.salesVolume = salesVolume;
    }

    @Override
    public String toString() {
        return "Track{" +
                "name='" + name + '\'' +
                ", salesVolume=" + salesVolume +
                '}';
    }


}
